package com.example.work.entity;

import javax.persistence.*;

/**
 * @Description:
 * @author: JinMu
 * @create: 2018-08-09 09:54
 * @Version: 1.0
 **/
@Entity
@Table(name = "t_submit")
public class Submit {
    private static final long serialVersionUID = -1L;

    @Id
    private String id;
    //提交账号
    private String account;
    //提交商家编号
    private String buynum;
    //提交数量
    private String amount;
    //提交结果
    private String result;
    //提交时间
    private String datetime;

    public Submit() {
    }

    public Submit(String account, String amount, String result) {
        this.account = account;
        this.amount = amount;
        this.result = result;
    }

    public Submit(String account, String amount, String result, String datetime) {

        this.account = account;
        this.amount = amount;
        this.result = result;
        this.datetime = datetime;
    }

    public Submit(String id, String account,String buynum, String amount, String result, String datetime) {
        this.id = id;
        this.account = account;
        this.buynum = buynum;
        this.amount = amount;
        this.result = result;
        this.datetime = datetime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getBuynum() {
        return buynum;
    }

    public void setBuynum(String buynum) {
        this.buynum = buynum;
    }

    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getDatetime() {
        return datetime;
    }

    public void setDatetime(String datetime) {
        this.datetime = datetime;
    }

    @Override
    public String toString() {
        return "Submit{" +
                "id='" + id + '\'' +
                ", account='" + account + '\'' +
                ", buynum='" + buynum + '\'' +
                ", amount='" + amount + '\'' +
                ", result='" + result + '\'' +
                ", datetime='" + datetime + '\'' +
                '}';
    }
}
